﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="MasterUpdateJob.aspx.cs" Inherits="WebApplication10.MasterUpdateJob" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">


h2
{
    font-size: 1.5em;
    font-weight: 600;
}

h2
{
    font-size: 1.5em;
    color: #666666;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin-bottom: 0px;
}

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        Update and Delete job</h2>
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        Width="484px" Height="96px" DataSourceID="ObjectDataSource1">
        <Columns>
            <asp:CommandField ShowEditButton="True"></asp:CommandField>
            <asp:BoundField DataField="JobID" HeaderText="JobID" SortExpression="JobID">
            </asp:BoundField>
            <asp:BoundField HeaderText="Job Title" DataField="Title"></asp:BoundField>
            <asp:BoundField HeaderText="DatePosted" DataField="DateOfPost"></asp:BoundField>
            <asp:CommandField ShowDeleteButton="True"></asp:CommandField>
        </Columns>
    </asp:GridView>
    <br />
    <br />
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="WebApplication10.App_Code.Job" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetJobByTtile" 
        TypeName="WebApplication10.App_Code.Job" UpdateMethod="UpdateJob" 
        DeleteMethod="DeleteJob">
    </asp:ObjectDataSource>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Content>
